<script>
  export default {
    onLaunch: function() {
      let token = uni.getStorageSync('token') || 'none';
      if (token == 'none') {
        // uni.redirectTo({
        //   url: '/pages/login/index'
        // })
      }
      console.log('App Launch');
    },
    onShow: function() {
      console.log('App Show')
    },
    onHide: function() {
      console.log('App Hide')
    }
  }
</script>

<style lang="scss">
  @import "colorui/main.css";
  @import "colorui/icon.css";
  @import "colorui/animation.css";
  // @import "uview-ui/index.scss";
  @import "api/style.css";
  /*每个页面公共css */
  /* uni-page-body,
  #app {
    height: 100%;
  } */

  /*隐藏head标签*/
  /* uni-page-head {
    display: none;
  } */

  /*body高度100%*/
  /* uni-page-wrapper {
    height: 100% !important;
  } */
</style>
